home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 020a / piclb183.zip / PL.HLP < prev    next >
Text File  |  1991-10-07  |  34KB  |  922 lines

  1. PL.HLP : Help file for Piclab 1.83
  2. Compiled 10/4/91
  3.  
  4. ~MAKEPAL
  5.  
  6. Syntax: MAKEPAL
  7.  
  8. Makes a palette appropriate for the NEW buffer.  Operates on only
  9. true-color images.  The variable PALETTE determines the number of
  10. colors in the new map, and the MAKEPAL command picks that many colors
  11. to best fit those in the image.
  12.  
  13. The MAP command must be used to map the image onto the palette.
  14.  
  15. ~EGAPAL
  16.  
  17. Syntax: EGAPAL
  18.  
  19. Makes a 16-of-64-color palette appropriate for the NEW buffer.
  20. Operates on only true-color images.  This is designed primarily for
  21. reducing full-color images to a form better suited for display on
  22. an IBM EGA or similar device.
  23.  
  24. The MAP command must be used to map the image onto the palette.
  25.  
  26. ~MAP
  27.  
  28. Syntax: MAP
  29.  
  30. Maps NEW buffer onto the current palette.  Operates only on true-color
  31. images, and produces a color-mapped image.  The variable DITHER
  32. determines whether each pixel is simply mapped onto the nearest color
  33. in the map, or whether dithering is used to achieve a more accurate
  34. mapping.  DITHER defaults to ON, and is recommended for most uses.
  35.  
  36. The MAKEPAL command should be used to create the best possible palette
  37. for the image before mapping, but any palette may be used for special
  38. purposes such as mapping several images to the same palette.
  39.  
  40. ~PLOAD
  41.  
  42. Syntax: PLOAD file [offset [count]]
  43.  
  44. Loads a MAP file into the current palette.  First argument is the name
  45. of the MAP file which is assumed to be in the PICDIR directory.  If a
  46. second argument is given, the palette is loaded starting at that index.
  47. If a third argument is given, only that many colors are loaded.
  48.  
  49. MAP files are plain text files that contain the RGB values for each
  50. palette index on one line.
  51.  
  52. ~PSAVE
  53.  
  54. Syntax: PSAVE file [offset [count]]
  55.  
  56. Saves a MAP file from the current palette.  First argument is the name
  57. of the MAP file which is assumed to be in the PICDIR directory.  If a
  58. second argument is given, the palette is loaded starting at that index.
  59. If a third argument is given, only that many colors are loaded.
  60.  
  61. This can be used to save a palette created with MAKEPAL so that it need
  62. not be calculated again, or so that it can be used with other images.
  63.  
  64. MAP files are plain text files that contain the RGB values for each
  65. palette index on one line.
  66.  
  67. ~GRAYPAL
  68.  
  69. Syntax: GRAYPAL file [offset [count]]
  70.  
  71. Makes the specified MAP file the default colors used when displaying
  72. monochrome images or full-color images on a VGA.  The default colors
  73. are equivalent to GAMMA1.MAP, but GAMMA2.MAP and PSEUDO.MAP can be
  74. useful in some situations.
  75.  
  76. MAP files are plain text files that contain the RGB values for each
  77. palette index on one line.
  78.  
  79. ~UNMAP
  80.  
  81. Syntax: UNMAP
  82.  
  83. Produces a true-color image from a color-mapped one.  This must be done
  84. before applying true-color transformations such as rescaling.  After
  85. transformations have been performed in true-color, the image may be
  86. reduced to a color-mapped one again with the MAKEPAL and MAP commands.
  87.  
  88. ~HELP
  89.  
  90. Syntax: HELP [subject]
  91.  
  92. Looks like you have figured this one out already.
  93.  
  94. ~CALL
  95.  
  96. Syntax: CALL program [args]...
  97.  
  98. Calls the external program named by its first argument passing along
  99. any subsequent arguments to that program.  Many programs do not
  100. release all of the memory given to them when they terminate, so
  101. Piclab will reserve a large portion of memory for itself before
  102. calling a program.  If you do not have much more memory than Piclab
  103. reserves, this may result in the program not being able to run in the
  104. memory left.
  105.  
  106. If this is a problem, you can use the DOS or SHELL commands to exit
  107. to DOS with all of the free memory available.
  108.  
  109. ~CANCEL
  110.  
  111. Syntax: CANCEL
  112.  
  113. Cancels the most recent operation.  If there are point
  114. transformations pending that have not yet been saved with the
  115. TRANSFORM command, these are cancelled and no changes are made to the
  116. edit buffers.  Otherwise, the NEW and OLD buffers are exchanged.
  117.  
  118. There are some operations (like SAVE) that do not alter the edit
  119. buffers.  If one of these operations was the last one performed, UNDO
  120. will undo the operation before that.  No arguments.
  121.  
  122. ~UNDO
  123.  
  124. Syntax: UNDO
  125.  
  126. Cancels the most recent operation.  If there are point
  127. transformations pending that have not yet been saved with the
  128. TRANSFORM command, these are cancelled and no changes are made to the
  129. edit buffers.  Otherwise, the NEW and OLD buffers are exchanged.
  130.  
  131. There are some operations (like SAVE) that do not alter the edit
  132. buffers.  If one of these operations was the last one performed, UNDO
  133. will undo the operation before that.  No arguments.
  134.  
  135. ~SHELL
  136.  
  137. Syntax: SHELL [command]
  138.  
  139. Calls up the DOS command line.  All available memory is released to
  140. DOS when this command is given, and is reclaimed when DOS is exited.
  141. For this reason, some programs that cannot be CALLed may be run from
  142. with DOS.
  143.  
  144. Any arguments to this command will be passed to the system as a
  145. command line, and will cause it to return immediately after the
  146. command is done.  One particularly useful action of this program is
  147. "SHELL COPY /B PDAT PRN", which copies the print file to the printer.
  148. "SHELL DIR" can be used to view file directories when you want to see
  149. all files, not just pictures.
  150.  
  151. ~DOS
  152.  
  153. Syntax: DOS [command]
  154.  
  155. Calls up the DOS command line.  All available memory is released to
  156. DOS when this command is given, and is reclaimed when DOS is exited.
  157. For this reason, some programs that cannot be CALLed may be run from
  158. with DOS.
  159.  
  160. Any arguments to this command will be passed to the system as a
  161. command line, and will cause it to return immediately after the
  162. command is done.  One particularly useful action of this program is
  163. "DOS COPY /B PDAT PRN", which copies the print file to the printer.
  164. "DOS DIR" can be used to view file directories when you want to see
  165. all files, not just pictures.
  166.  
  167. ~QUIT
  168.  
  169. Syntax: QUIT [flag]
  170.  
  171. Exits Piclab.  If there is a point transformation pending, it must be
  172. cancelled or saved before exiting.  If the exit command is given any
  173. arguments, it exits immediately regardless of pending transformations.
  174.  
  175. Inside a program, QUIT merely sets a flag so that Piclab will exit after
  176. the program is complete.
  177.  
  178. ~EXIT
  179.  
  180. Syntax: EXIT [flag]
  181.  
  182. Exits Piclab.  If there is a point transformation pending, it must be
  183. cancelled or saved before exiting.  If the exit command is given any
  184. arguments, it exits immediately regardless of pending transformations.
  185.  
  186. Inside a program, EXIT merely sets a flag so that Piclab will exit after
  187. the program is complete.
  188.  
  189. ~LIST
  190.  
  191. Syntax: LIST [item]
  192.  
  193. If given without an argument, shows what things may can be listed.
  194. If one of these things (e.g. FORMATS, COMMANDS, BUFFERS) is given as
  195. an argument, the appropriate items are listed.  Especially useful are
  196. LIST COMMANDS if you forget the name of a command you are looking for
  197. and LIST BUFFERS to check the size and format of the image in the OLD
  198. and NEW edit buffers.
  199.  
  200. ~PAUSE
  201.  
  202. Syntax: PAUSE [time]
  203.  
  204. With no arguments, Piclab waits for a key to be pressed before
  205. continuing.  If one argument is given, Piclab waits for that number
  206. of seconds (but will break early if a key is pressed).  This is for
  207. use within programs.
  208.  
  209. ~PRINT
  210.  
  211. Syntax: PRINT [x-offset [y-offset]]
  212.  
  213. Prints the image in the NEW buffer into the file specified by the
  214. PRINTFILE variable.  The current setting of the PRINTER variable
  215. determines what codes are sent to the file.
  216.  
  217. For hard-to-explain reasons, the current release of Piclab does not
  218. allow the use of a device name such as PRN in the PRINTFILE
  219. variable.  Images must therefore be printed to disk and copied to the
  220. printer with DOS.
  221.  
  222. If arguments are given, the first two are used as the X and Y offsets
  223. of the first dot to print on the first page of output.
  224.  
  225. ~RUN
  226.  
  227. Syntax: RUN program [ECHO]
  228.  
  229. Takes one argument--the name of a text file containing Piclab
  230. commands.  These are interpreted as if they had been typed from the
  231. command line, but they are not echoed, and messages are turned off
  232. while a program runs.  If a second argument to the RUN command is the
  233. word ECHO, messages are not turned off.
  234.  
  235. A program can also be run by giving its name as an argument to the PL
  236. command when starting Piclab.
  237.  
  238. ~SHOW
  239.  
  240. Syntax: SHOW [x-offset [y-offset]]
  241.  
  242. Used to display as much of the image in the NEW buffer as will fit on
  243. the computer's display screen.  If arguments are given, the first is
  244. used as a horizontal offset into the image buffer and the second as a
  245. vertical offset.  This can be used to look at different parts of an
  246. image too big for the screen.  Certain video modes allow scrolling
  247. with the arrow keys, but not all.  If no arguments are given, the
  248. current values of the XORIGIN and YORIGIN variables are used.
  249.  
  250. If any point transformations are pending, the image you see on screen
  251. reflects the image as it would be AFTER the pending transformation.
  252. This can be used to look at the effect of a transformation before
  253. saving or cancelling it.
  254.  
  255. Because Piclab often stores data more accurately than the display can
  256. render it, what you see on the screen is only an approximation of the
  257. actual image.  In particular, because Piclab does not yet support any
  258. true-color display hardware, true-color images will be shown in grayscale
  259. on displays capable of it, or in 8-color dither on others.
  260.  
  261. ~SET
  262.  
  263. Syntax: SET [variable [value]]
  264.  
  265. Without any arguments, lists all Piclab variables and their current
  266. values.  Variables can be numbers, character strings, or TRUE/
  267. FALSE.  Variables set system defaults and control the specifics of
  268. how many commands perform.
  269.  
  270. If the set command is given one argument, the variable named is
  271. cleared.  That is, set to 0 if it is numeric, to "" if it is a
  272. string, and to FALSE if it is TRUE/FALSE.
  273.  
  274. If SET is given with two arguments, the variable named by the first
  275. is set to the value specified by the second.  If a numeric variable
  276. is given a string value, it is set to 0.  String values should not be
  277. put in quotes.  TRUE/FALSE values may be set by the keywords
  278. TRUE/FALSE, YES/NO, ON/OFF, or by the numeric values 1/0.
  279.  
  280. Within the SSTOOLS.INI file, the syntax is <variable>=<value>.
  281.  
  282. Help on individual variables is available by typing HELP <variable>.
  283.  
  284. ~HISTOGRAM
  285.  
  286. Syntax: HISTOGRAM [RED | GREEN | BLUE]...
  287.  
  288. If no arguments are given, plots histograms for all planes; if one or
  289. more arguments are given, a histogram is plotted for each plane
  290. specified as an argument.  The histograms plotted reflect the image
  291. as it would be after any pending transformations, so you can look at
  292. the results of many processes before saving or cancelling them.
  293.  
  294. Each vertical bar of the histogram represents the total number of
  295. pixels in the image with values in the range beginning with the value
  296. listed below the histogram in hexadecimal.  Each bar covers a range
  297. of four values and there are 64 bars.  The height of each bar is in
  298. logarithmic proportion to the frequency of occurrence of values in
  299. the range it represents.  The bars are automatically scaled so that
  300. the tallest one is made 20 characters high.
  301.  
  302. ~NEGATE
  303.  
  304. Syntax: NEGATE [RED | GREEN | BLUE]...
  305.  
  306. Arguments are handled as in HISTOGRAM.  Inverts each value in the
  307. lookup table for the planes specified.  This can be used after
  308. digitizing a negative or for special effects.
  309.  
  310. ~DARKEN
  311.  
  312. Syntax: DARKEN [[RED | GREEN | BLUE] value]...
  313.  
  314. Subtracts a constant value to each point in the planes specified.  If
  315. only one argument is given, all planes are brightened by that amount.
  316. Otherwise, arguments are interpreted in order, and any arguments that
  317. specify planes determine which plane the next numerical argument will
  318. affect.  For example, DARKEN RED 10 BLUE 15 would subtract 10 from
  319. the values in the red plane and 15 from those in the blue.  Any
  320. values that would be taken out of the 0..255 range by the transform
  321. are clamped.
  322.  
  323. Because this darkening is a linear operation, the image to be
  324. brightened or darkened should be encoded with a gamma of 1.0.  That
  325. is, there should be a linear relationship between values in the image
  326. and intensities on the display.  If this is not the case, gamma
  327. correction may be applied with the GAMMA command before adjusting
  328. brightness.
  329.  
  330. ~BRIGHTEN
  331.  
  332. Syntax: BRIGHTEN [[RED | GREEN | BLUE] value]...
  333.  
  334. Adds a constant value to each point in the planes specified.  If only
  335. one argument is given, all planes are brightened by that amount.
  336. Otherwise, arguments are interpreted in order, and any arguments that
  337. specify planes determine which plane the next numerical argument will
  338. affect.  For example, BRIGHTEN RED 10 BLUE 15 would add 10 to the
  339. values in the red plane and 15 to those in the blue.  Any values that
  340. would be taken out of the 0..255 range by the transform are clamped.
  341.  
  342. Because this brightening is a linear operation, the image to be
  343. brightened or darkened should be encoded with a gamma of 1.0.  That
  344. is, there should be a linear relationship between values in the image
  345. and intensities on the display.  If this is not the case, gamma
  346. correction may be applied with the GAMMA command before adjusting
  347. brightness.
  348.  
  349. ~CONTRAST
  350.  
  351. Syntax: CONTRAST [[RED | GREEN | BLUE] value]...
  352.  
  353. This stretches or squeezes the contrast of an image.  Arguments are
  354. interpreted like those in BRIGHTEN.  If a given value is positive,
  355. the image contrast is stretched so that values that were equal to the
  356. given value become 0, and those that were equal to (255-value) become
  357. 255.  If the given value is negative, the inverse operation is
  358. performed.  Because contrast is always stretched equally around the
  359. midpoint of the range, it is a good idea to brighten or darken an
  360. image as necessary to center its histogram before performing a
  361. contrast stretch.
  362.  
  363. Also, the contrast stretching formula operates on color values
  364. assuming a linear relationship between these values and the
  365. intensities they represent (as do the BRIGHTEN and DARKEN commands). 
  366. Therefore, if an image has been scanned with a device with a gamma
  367. value not equal to 1.0, the image should be gamma corrected before
  368. contrast stretching.
  369.  
  370. ~GAMMA
  371.  
  372. Syntax: GAMMA [[RED | GREEN | BLUE] value]...
  373.  
  374. The color values of the specified planes are adjusted so that values
  375. encoded for display on a monitor with a gamma value equal to the
  376. argument become linear.
  377.  
  378. For example, images encoded for display on PCs usually expect a
  379. monitor with a gamma near 2.0.  The GAMMA 2.0 command will convert
  380. these values to a linear scale.
  381.  
  382. Images encoded on Macintoshes and similar equipment have linear
  383. values already.  Such images can be adjusted for display on PCs with
  384. the inverse transformation, i.e. GAMMA 0.5.
  385.  
  386. See Piclab.DOC for more background on gamma correction.
  387.  
  388. ~COLOR
  389.  
  390. Syntax: COLOR [mapfile]
  391.  
  392. Converts a grayscale image into a color-mapped image.  If the first
  393. argument is the name of a MAP file, the image is pseudo-colored with
  394. that map, otherwise the color map will contain the original grays.
  395.  
  396. ~GRAY
  397.  
  398. Syntax: GRAY
  399.  
  400. Converts true-color or color-mapped image to grayscale.  The formula
  401. used for conversion to grayscale is the same as used by black and
  402. white televisions and is designed to mimic the eye's response: gray =
  403. (.287 * red) + (.589 * green) + (.114 * blue).
  404.  
  405. ~TRANSFORM
  406.  
  407. Syntax: TRANSFORM
  408.  
  409. Saves the result of a series of point-process transformations to the
  410. edit buffer.  This must be done before any other transformation may
  411. be performed on the image.  If you wish to cancel the pending
  412. transformations without saving them, use UNDO or CANCEL.
  413.  
  414. ~MEDIAN
  415.  
  416. Syntax: MEDIAN [WEIGHTED]
  417.  
  418. Reduces spot noise in an image.  Each point is replaced by the median
  419. of the points in its 3 x 3 area.  That is, the nine points in this
  420. area are sorted and the fifth one is taken.  If the one argument to
  421. this routine is WEIGHTED, then the center point is added twice more
  422. to the list and the sixth of the 11 points is taken.
  423.  
  424. The median filter results in some smoothing, but not as much as with
  425. the SMOOTH command.  This effect is a little less drastic with the
  426. weighted median filter.  Repeated application of this operation will
  427. result in an oil-paint texture appearing on the image.
  428.  
  429. This filter will not help reduce periodic or other noise--only small
  430. spot noise such as from dust on a lens.
  431.  
  432. ~SHARPEN
  433.  
  434. Syntax: SHARPEN [value]
  435.  
  436. Applies what is called (somewhat inaccurately) a LaPlace transform to
  437. the image.  The effect is that edges in the image are sharpened as if
  438. the image had been re-focused.  Unfortunately, it also increases the
  439. amount of noise in the image, making it appear more grainy.
  440.  
  441. The command can be given a single numerical argument, which specifies
  442. the severity of the transform.  It is basically a tradeoff between
  443. sharpness and noise, and defaults to 1.0.  This value provides a
  444. noticeable increase in both sharpness and noise, and is about the
  445. best value for sharpening when the purpose is to bring out
  446. information.  When applying to a real image, a less severe value of
  447. .2 to .5 is often better.  Values greater than 1.0 should be used
  448. only when trying to locate specific objects in an image.  They
  449. produce too much noise for accurate reproduction.
  450.  
  451. This function works by amplifying the differences between each point
  452. and its neighbors.  This has the effect of amplifying high spatial
  453. frequency details such as edges and noise.
  454.  
  455. ~SMOOTH
  456.  
  457. Syntax: SMOOTH [value]
  458.  
  459. Replaces each point with the average of the values of the nine points
  460. in its neighborhood.  This has the effect of smoothing the image and
  461. reducing high frequency effects like aliasing and noise, as well as
  462. high frequency details.  If an argument is given, it is taken as a
  463. value of the severity of the transform as with the SHARPEN command. A
  464. value of 1.0 is exactly as described.  Values less than 1.0 change
  465. the center value less than if a straight average had been done. 
  466. Values greater than 1.0 are not recommended.  If more smoothing is
  467. desired, perform SMOOTH more than once rather than with a high value.
  468.  
  469. ~ADD
  470.  
  471. Syntax: ADD [WRAP]
  472.  
  473. Adds the OLD and NEW edit buffers storing the result in the NEW
  474. buffer.  If the only argument to the command is WRAP, then values
  475. that are taken out of the 0..255 range by the addition are taken mod
  476. 255; otherwise, values are clamped.
  477.  
  478. ~SUBTRACT
  479.  
  480. Syntax: SUBTRACT [WRAP]
  481.  
  482. Subtracts the NEW edit buffers from the OLD buffer storing the result
  483. in the NEW buffer.  If the only argument to the command is WRAP, then
  484. values that are taken out of the 0..255 range by the addition are
  485. taken mod 255; otherwise, values are clamped.
  486.  
  487. ~AVERAGE
  488.  
  489. Syntax: AVERAGE
  490.  
  491. Averages the OLD and NEW buffers, storing the result in NEW.  This
  492. can be used to reduce random digitizer noise by averaging the results
  493. of different samplings.  Can also be used to produce a double exposure
  494. effect when two different images are averaged.  No arguments.
  495.  
  496. ~CLIP
  497.  
  498. Syntax: CLIP [x-size y-size]
  499.  
  500. If no arguments are given, image is clipped from (XORIGIN,YORIGIN) to
  501. lower right corner (upper right for bottom-up images).  If two
  502. arguments are given, the image is clipped from (XORIGIN,YORIGIN) to
  503. the horizontal and vertical size specified by the arguments.  XORIGIN
  504. and YORIGIN are set to 0 after this operation.  One argument is an
  505. error; more than two are ignored.
  506.  
  507. ~EXPAND
  508.  
  509. Syntax: EXPAND x-size y-size [(BLACK | WHITE | value) [value]...]
  510.  
  511. This command increases the size of the image to the width and height
  512. specified by its first two arguments by adding extra rows and columns
  513. of pixels.  If a third argument is given, it can be either BLACK or
  514. WHITE to indicate what color the extra pixels should be.  If three
  515. numeric arguments are given after the bounds arguments, they are
  516. taken as the red, green, and blue value of the extra pixels. 
  517.  
  518. Multiple images can be placed in a montage by using EXPAND and
  519. OVERLAY.  Parts of an image may be joined with these functions as
  520. well, but it is not recommended for separately digitized image
  521. pieces, as no mosaicking is performed.
  522.  
  523. For color-mapped images, the third argument is treated as a color map
  524. index rather than a color value.
  525.  
  526. ~MIRROR
  527.  
  528. Syntax: MIRROR
  529.  
  530. Flips the image horizontally.  No Arguments.
  531.  
  532. ~OVERLAY
  533.  
  534. Syntax: OVERLAY [x-offset y-offset]
  535.  
  536. Overlays the image in the NEW buffer on top of the OLD buffer.  The
  537. image in the NEW buffer must not be larger than the image it is to
  538. overlay.  If two arguments are given, they are used as the horizontal
  539. and vertical offsets into the base image at which the overlay image
  540. is to be placed.  Otherwise, XORIGIN and YORIGIN are used.
  541.  
  542. ~RESCALE
  543.  
  544. Syntax: RESCALE value | (x-size y-size)
  545.  
  546. Resamples the image at a different resolution.  This is useful for
  547. scaling images up to a larger size for printing, or for scaling them
  548. down for display.  It is recommended that image data always be saved
  549. at its original sampling resolution to preserve as much data as
  550. possible and only scaled when necessary to conform to hardware.
  551.  
  552. If only one argument is given, horizontal and vertical resolution are
  553. both increased in the given proportion.  E.g., if a 320 x 240 image is
  554. in the NEW buffer when RESCALE 1.5 is given, the NEW buffer will
  555. contain the same image at 480 x 360.
  556.  
  557. When two arguments are present, they are treated directly as the new
  558. resolution of the image.  The above command could be expressed as
  559. RESCALE 360 480.  This is most often used to compensate for differing
  560. aspect ratios.  For example, a 320 x 400 from an Amiga can be rescaled
  561. to 320 x 200 to be viewed on a VGA.
  562.  
  563. RESCALE cannot be used on color-mapped images.
  564.  
  565. ~REVERSE
  566.  
  567. Syntax: REVERSE
  568.  
  569. Changes the storage order of an image from top-down to bottom-up or
  570. vice versa.  This is used primarily to save an image loaded from a
  571. file in one format (like PCX) to a format requiring the opposite
  572. order (like GIF).
  573.  
  574. Targa files can be stored either way, and contain information in the
  575. header specifying which way they are stored.  Thus, any image can be
  576. saved in Targa format at any time with minimal memory usage.
  577.  
  578. ~ROTATE
  579.  
  580. Syntax: ROTATE value
  581.  
  582. Rotates image in 90-degree increments.  The single argument may
  583. specify 1, 2, or 3, in which case that number of clockwise 90-degree
  584. rotations are performed.  If a number >= 90 is given as the argument,
  585. the image is rotated that number of degrees (truncated to the nearest
  586. 90-degree increment).
  587.  
  588. This is very useful for rotating screen-oriented images for printing
  589. on paper.  Because this operation requires large amounts of memory
  590. for large images, it is recommended in this case to rotate the image
  591. before scaling it up to size for printing.
  592.  
  593. ~DIR
  594.  
  595. Syntax: DIR [directory]
  596.  
  597. Lists all files in the PICDIR directory in the current file format.  If
  598. an argument is given, files in that directory are listed.  No other
  599. file specifications can be given.  If FILEFORMAT is set to GIF or
  600. TARGA, statistics on the files will be listed as well.
  601.  
  602. ~GDIR
  603.  
  604. Syntax: GDIR [directory]
  605.  
  606. Lists only GIF files from PICDIR or from the directory given as sole
  607. argument.  Statistics are listed from each file as well.
  608.  
  609. ~TDIR
  610.  
  611. Syntax: TDIR [directory]
  612.  
  613. Lists only Targa files from PICDIR or from the directory given as
  614. sole argument.  Statistics are listed from each file as well.
  615.  
  616. ~LOAD
  617.  
  618. Syntax: LOAD file [args]...
  619.  
  620. Loads a file in the current file format into the NEW buffer, moving
  621. the current contents of the NEW buffer to OLD.  Any arguments are
  622. passed along to the function that handles loading for the current
  623. format and are interpreted by that routine.  The first argument is
  624. always the file to be loaded, but other arguments vary with the format.
  625.  
  626. LIST FORMATS will give you a list of all the available file formats,
  627. and HELP is available for each.
  628.  
  629. ~GLOAD
  630.  
  631. Syntax: GLOAD file
  632.  
  633. Loads image in GIF format regardless of the current setting of
  634. variable FILEFORMAT.  Sole argument is filename.
  635.  
  636. ~TLOAD
  637.  
  638. Syntax: TLOAD file
  639.  
  640. Loads image in Targa format regardless of the current setting of
  641. variable FILEFORMAT.  Sole argument is filename.
  642.  
  643. ~RLOAD
  644.  
  645. Syntax: RLOAD file x-size y-size [COLOR | MONO]
  646.  
  647. Loads image in RAW format regardless of the current setting of
  648. variable FILEFORMAT.  The width and height of the image must be
  649. specified as the second and third arguments to RLOAD.  A fourth
  650. argument may be either of the words COLOR or MONO to specify the
  651. number of planes.  COLOR is default.
  652.  
  653. Color-mapped RAW files must be loaded as MONO, then colored with the
  654. COLOR command after the palette is loaded with PLOAD.
  655.  
  656. ~SAVE
  657.  
  658. Syntax: SAVE file [args]...
  659.  
  660. Saves the image in the NEW buffer to the file specified by the first
  661. argument.  Subsequent arguments are passed along to the file save
  662. routine of the current file format.
  663.  
  664. LIST FORMATS will give you a list of all the available file formats,
  665. and HELP is available for each.
  666.  
  667. ~GSAVE
  668.  
  669. Syntax: GSAVE file [INTERLACE]
  670.  
  671. Saves the NEW buffer to the file named by the first argument in GIF
  672. format regardless of the current setting of variable FILEFORMAT.  If
  673. the second argument is the word INTERLACE, image is interlaced.
  674.  
  675. ~TSAVE
  676.  
  677. Syntax: TSAVE file [bits]
  678.  
  679. Saves the NEW buffer to the file named by the first argument in Targa
  680. format regardless of the current setting of variable FILEFORMAT.  If
  681. the second argument is 16, 24, or 32, it is used as the number of
  682. bits per pixel stored in the file.
  683.  
  684. ~RSAVE
  685.  
  686. Syntax: RSAVE file
  687.  
  688. Saves image in RAW format regardless of the current setting of
  689. variable FILEFORMAT.  No arguments.
  690.  
  691. ~XORIGIN
  692.  
  693. Used to set the left limit of an image for operations such as CLIP
  694. and SHOW.  Legal values are 0..(image width - 1).
  695.  
  696. ~YORIGIN
  697.  
  698. Used to set the upper limit of an image for operations such as CLIP
  699. and SHOW.  Legal values are 0..(image height - 1).  If image in NEW
  700. buffer is stored with bottom-up raster, YORIGIN is measured from the
  701. bottom counting upwards.
  702.  
  703. ~PALETTE
  704.  
  705. Number of colors in palette for palette mapping operations.  Valid
  706. values are 2..256.
  707.  
  708. ~DPI
  709.  
  710. Graphics resolution for LaserJet printing.  May be 75, 150, or 300.
  711.  
  712. ~MULTIIMAGE
  713.  
  714. T/F flag for GIF loading.  If true, Piclab will assume that any GIF
  715. files to be loaded may contain multiple images and will act
  716. accordingly.  This requires more memory, so it defaults to FALSE.
  717.  
  718. ~MULTIMAP
  719.  
  720. T/F flag for GIF loading.  If true, Piclab will assume than any GIF
  721. files to be loaded may contain multiple images, and further, that
  722. each image may contain a local color map that differs from the global
  723. map.  This takes three times the memory of MULTIIMAGE mode, so it
  724. should be used only when absolutely necessary.
  725.  
  726. ~DITHER
  727.  
  728. T/F flag used by the MAP command to determine whether or not
  729. dithering is performed.  Defaults to TRUE, and is recommended.
  730.  
  731. ~DISPLAY
  732.  
  733. Selects display type for SHOW command.  LIST DISPLAYS will list the
  734. available modes and HELP is available for each.
  735.  
  736. ~PRINTER
  737.  
  738. String variable indicating what type of printer the PRINT command
  739. should address.  For a list of legal values, type LIST PRINTERS.
  740.  
  741. ~PRINTFILE
  742.  
  743. Disk file to which the PRINT command is directed.  If blank, as is
  744. the default, printing is sent directly to LPT1.
  745.  
  746. ~PRINTSCALE
  747.  
  748. *** NOTE: The PRINTSCALE variable is not implemented.  What follows is
  749. a description of what it will do when I get around to writing it.
  750.  
  751. Printer output is scaled up by this factor when printing.  This can
  752. be used to print large banners and posters.  If the image after
  753. scaling is wider than the paper, it will be printed in strips.
  754.  
  755. ~TEMPDIR
  756.  
  757. Name of the drive and directory where Piclab stores its temporary
  758. files (including the NEW and OLD edit buffers).  This directory must
  759. have six bytes free for every pixel in an image with which you intend
  760. to work plus some overhead.  This defaults to the setting of the TMP
  761. environment variable.
  762.  
  763. ~PICDIR
  764.  
  765. Directory in which picture files are stored.  If you use the DIR,
  766. LOAD, and SAVE commands without specifying a directory, they will
  767. look here.
  768.  
  769. ~MAPDIR
  770.  
  771. Directory in which MAP files are stored.
  772.  
  773. ~FILEFORMAT
  774.  
  775. Default file format for DIR, LOAD, and SAVE commands.  To operate on
  776. most file formats it is necessary to set this variable
  777. appropriately.  GIF and TGA are special:  separate commands (GDIR,
  778. TLOAD, etc) exist to load and save these formats regardless of
  779. current setting.  For legal values, type LIST FORMATS.
  780.  
  781. ~SILENT
  782.  
  783. This variable is not listed, but can be set from the SSTOOLS.INI
  784. file.  Its only function is to supress the program ID that prints
  785. when Piclab is started.
  786.  
  787. ~LEAVETEMPS
  788.  
  789. If this hidden variable is set to TRUE, the temporary file that
  790. Piclab creates will not be deleted upon exit.  This can be used to
  791. optimise performance by placing the temporaries in a fixed location.
  792.  
  793. ~HELPFILE
  794.  
  795. Hidden variable identifying the HELP file.  This defaults to PL.HLP,
  796. but can be set in the SSTOOLS.INI file to anywhere.
  797.  
  798. ~TARGA
  799.  
  800. Truevision Targa and Vista format.  No arguments are needed to the
  801. LOAD command.  For the SAVE command, if the second argument is 16,
  802. 24, or 32, it is used as the number of bits per pixel in the file.
  803.  
  804. ~GIF
  805.  
  806. No arguments are interpreted from the command line, but GIF loading
  807. is affected by the values of the variables MULTIIMAGE and MULTIMAP.
  808. These are both set false by default to save memory, but one or both
  809. may be necessary to load some files.  LOAD will issue warnings when
  810. loading a multiimage or multimap file with improper settings.
  811.  
  812. If the word INTERLACE is given as an argument to the SAVE command,
  813. the file is stored in GIF interlaced format.  A GIF file is always
  814. saved as a single-image file with the screen size and image size
  815. identical.  Because color GIF files are limited to a palette of 256
  816. colors, only monochrome and mapped images can be saved.
  817.  
  818. 'GIF' and 'Graphics Interchange Format' are trademarks of
  819. CompuServe Incorporated, an H&R Block company.
  820.  
  821. ~RIX256
  822.  
  823. Only uncompressed 256-color file formats from ColoRix are
  824. supported--the old EGAPaint files are not.  Because so many different
  825. file extensions are used, file extension must be specified when
  826. loading.  The global palette is taken from the image file regardless
  827. of the file extension, unlike ColoRix.
  828.  
  829. The SAVE command is not supported for this format.
  830.  
  831. ~IP
  832.  
  833. This is the Amiga DigiView's raw storage format.  It consists of
  834. nothing but three planes of data, one byte per pixel, followed by 12
  835. bytes not associated with the image.  Because there is no size
  836. information in a IP file, the width and height of the image must be
  837. specified as the second and third arguments to LOAD.  A fourth
  838. argument may be the words COLOR or MONO to specify the number of
  839. planes.  COLOR is default.
  840.  
  841. The SAVE command is not supported for this format.
  842.  
  843. ~RAW
  844.  
  845. One file per plane, one byte per pixel, nothing else.  The width and
  846. height of the image must be specified as the second and third
  847. arguments to LOAD.  A fourth argument may be either of the words
  848. COLOR or MONO to specify the number of planes.  COLOR is default.
  849.  
  850. The file for plane one must have the .R8 extension, and the second
  851. and third planes, if any, must have .G8 and .B8.
  852.  
  853. ~CGA
  854.  
  855. Puts the CGA into standard 640 x 200 x 2 mode and displays two screen
  856. pixels for each image pixel, covering an image area of 320 x 200.
  857. Image data is halftoned while displaying, so it is quite slow.  No
  858. color can be shown.
  859.  
  860. ~EGA
  861.  
  862. Puts the EGA into standard 640 x 350 x 16 mode and displays one
  863. screen pixel per image pixel.  8-color dithering is used to get an
  864. approximation of the colors in the original image, so this mode is
  865. rather slow.  Also note that this mode stretches the pixels
  866. vertically more than any other mode.
  867.  
  868. ~VGA1
  869.  
  870. Puts the VGA into standard 320 x 200 x 256-color mode and displays
  871. one screen pixel for each image pixel.  Color-mapped images will
  872. appear in full color; true-color and grayscale images will appear in
  873. pseudo-gray which allows the VGA to display more than 64 shades but
  874. with some slight tinges of color.
  875.  
  876. ~VGA2
  877.  
  878. Puts the VGA into non-standard 360 x 480 x 256-color mode and
  879. displays one screen pixel for every two image pixels, dropping every
  880. other pixel horizontally so that an image area of 720 x 480 is
  881. shown.  Color-mapped images will appear in full color; true-color and
  882. grayscale images will appear in pseudo-gray which allows the VGA to
  883. display more than 64 shades but with some slight tinges of color.
  884.  
  885. ~SVGA1
  886.  
  887. Puts an extended VGA into 640 x 400 x 256-color mode.  This mode is
  888. available on adapters from Ahead Systems, ATI, Chips & Technologies,
  889. Everex, Paradise, Trident, Tseng Labs (including Orchid) and Headland
  890. Technologies (Video 7).  Only 256k of video RAM is required for this
  891. mode, but some adapters may require a multi-frequency monitor.
  892.  
  893. ~SVGA2
  894.  
  895. Puts an extended VGA into 640 x 480 x 256-color mode.  This mode is
  896. available on most non-IBM adapters (see SVGA1 mode description) and
  897. requires 512k of video RAM and a multi-frequency monitor.
  898.  
  899. ~SVGA3
  900.  
  901. Puts an extended VGA into 800 x 600 x 256-color mode.  This mode is
  902. available on some adapters and requires 512k of video RAM and a high-
  903. resolution multi-frequency monitor
  904.  
  905. ~PAINTJET
  906.  
  907. Images are printed to the HP PaintJet at 90 DPI.  Currently only
  908. true-color images may be printed, so COLOR and UNMAP must be used to
  909. print others.
  910.  
  911. ~LASERJET
  912.  
  913. Currently only grayscale images may be printed to the HP LaserJet.
  914. The variable DPI can be set to 75, 150, or 300 to determine the
  915. output resolution.  If DPI is set to 300, the LaserJet must have more
  916. than 1 MB of memory to print properly.
  917.  
  918. Each image pixel will generate four pixels on the printer, regardless
  919. of DPI.  This is so that more accurate grayscale can be obtained.
  920.  
  921. ~
  922.